﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchStaffRole.ascx.vb"
    Inherits="WebForm_ManageStaffRole_SearchStaffRole" %>
<%@ Register Src="~/WebForm/CommonControl/SearchEmployControl.ascx" TagName="SearchEmployControl" TagPrefix="My" %>
<div style="background-color: #351D26">
<FIELDSET ID="FIELDSET1" style="border-color:#4E333B" runat="server">
<LEGEND class="white2">
    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:RoleToStaff.GroupingText%>" />
</LEGEND>
    <table>
        <tr>
            <td align="right" width="15%">
                <asp:Label ID="lblDivision" runat="server" meta:resourcekey="lblDivision"></asp:Label>
            </td>
            <td align="left">
                <asp:DropDownList ID="ddlDivision" runat="server"  AutoPostBack="true" OnSelectedIndexChanged="ddlDivision_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblInheritedRole" runat="server" meta:resourcekey="lblInheritedRole"></asp:Label>
            </td>
            <td align="left">
                <asp:DropDownList ID="ddlParent" runat="server"></asp:DropDownList>
     <%--           <TServerControl:TDropDownList ID="ddlParent" runat="server" DataSourceID="ObjectDataSource_SelectAllPapas"
                    DataTextField="RoleName" DataValueField="RoleID" >
                        </TServerControl:TDropDownList>
                        <asp:ObjectDataSource ID="ObjectDataSource_SelectAllPapas" runat="server" 
                            OldValuesParameterFormatString="original_{0}" SelectMethod="BLL_SelectAllRoles" 
                            TypeName="BLL_ManageRole"></asp:ObjectDataSource>--%>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblRoleName" runat="server" meta:resourcekey="lblRoleName"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="txtRoleName" runat="server"></asp:TextBox>
                <asp:Button ID="btnSelect" runat="server" meta:resourcekey="btnSelect" />
            </td>
        </tr>
    </table>
</FIELDSET>
<br />
<FIELDSET ID="FIELDSET2" style="border-color:#4E333B" runat="server">
<LEGEND class="white2">
    <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:StaffList.GroupingText%>" />
</LEGEND>
    <My:MyGridView ID="gv" runat="server" SkinID="pager" meta:resourcekey="gv" AllowPaging="True"
        AllowHoverSelect="False" AllowHoverEffect="True" DataKeyNames="RoleID" MySortDirection="Ascending"
        AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField DataField="ParentName" meta:resourcekey="bfPapaRoleName" />
            <asp:BoundField DataField="Division" meta:resourcekey="bfDivision" />
            <asp:BoundField DataField="RoleName" meta:resourcekey="bfRoleName" />
            <asp:BoundField DataField="EmployeeID" meta:resourcekey="bfEmployeeID" />
            <asp:BoundField DataField="EmployeeName" meta:resourcekey="bfEmployeeName" />
            <asp:TemplateField>
            <itemtemplate>
                <asp:Label ID="lblUserID" runat="server" Text='<%# Bind("EmployeeID") %>' Visible="false"></asp:Label>
                <asp:LinkButton id="lknAdd" SkinID="infor" meta:resourcekey="lknAdd" runat="server" CommandName="Adding"></asp:LinkButton> 
                <asp:LinkButton id="lknDelete" SkinID="infor" meta:resourcekey="lknDelete" runat="server" CommandName="Deleting" CommandArgument='<%# Bind("EmployeeID") %>'></asp:LinkButton> 
                <ajaxToolkit:ConfirmButtonExtender ID="cbSave" runat="server" TargetControlID="lknDelete"
                      meta:resourcekey="cbSave">
                </ajaxToolkit:ConfirmButtonExtender>
            </itemtemplate>
            </asp:TemplateField>
        </Columns>
    </My:MyGridView>
</FIELDSET>
</div>
<My:SearchEmployControl ID="SearchEmployControl1" runat="server" />
